package cn.kgc.ssm.web.controller;

import cn.kgc.ssm.web.response.ResponseResult;
import cn.kgc.ssm.web.service.EchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 课工场
 * @date 2024/8/6
 * @description
 */
@RestController
@RequestMapping("echarts")
public class EchartsController {

    @Autowired
    private EchartsService echartsService;

    // 折线图数据接口
    @GetMapping("lineData")
    public ResponseResult  lineData(){

        return  echartsService.lineData();
    }

    // 数据看板
    @GetMapping("dataPanel")
    public ResponseResult  dataPanel(){

        return  echartsService.dataPanel();
    }


    // 饼图数据
    @GetMapping("dataPie")
    public ResponseResult  dataPie(){

        return  echartsService.dataPie();
    }


}
